<h2>Rejestracja</h2>
<% form_for :user do |form| %>
	<fieldset>
		<legend>Podaj swoje dane</legend>
		
		<%= error_messages_for "user" %>
		
		<div class="row">
			<label for="name">Imię:</label>
			<%= form.text_field :name, :size => 20, :maxlength => 20 %>
		</div>
		
		<div class="row">
			<label for="surname">Nazwisko:</label>
			<%= form.text_field :surname, :size => 20, :maxlength => 20 %>
		</div>
		
		<%= render :partial => "username_field",
			   :locals => { :form => form} %>
		
		<%= render :partial => "password_field",
			   :locals => { :form => form, :field => :password, :field_title => "Hasło" } %>
			   
		<%= render :partial => "password_field",
			   :locals => { :form => form, :field => :password_confirmation, :field_title => "Potwierdź" } %>
		
		<%= render :partial => "email_field",
			   :locals => { :form => form} %>
		
		<div class="row">
			<label for="country">Kraj:</label>
			<%= form.text_field :country, :size => 20, :maxlength => 20 %>
		</div>
		
		<div class="row">
			<label for="city">Miasto:</label>
			<%= form.text_field :city, :size => 20, :maxlength => 20 %>
		</div>
		
		<div class="row">
			<%= submit_tag "Rejestruj!", :class => "submit" %>
		</div>
	</fieldset>	
<% end %>
	